package com.lecing.dao;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;

/**
 * 月付/年付 还款数据查询
 * Created by licus on 2018/5/24.
 */
@Repository
public class RepayStatDao {

    private static final String namespace="com.lecing.dao.RepayStatDao.";
    @Resource
    private SqlSessionTemplate session;
    /**
     * 查询月付还款日额
     * @param month
     * @return
     */
    public List<Map<String,Object>> selectMRepay(@Param("month") String month){
        List<Map<String,Object>> mPayRepays=new ArrayList<>();
        mPayRepays= session.selectList(namespace+"selectMRepayData",month);
        return mPayRepays;
    }
}
